package com.hetongxue.system.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hetongxue.system.domain.Classify;
import com.hetongxue.system.mapper.ClassifyMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Description: 分类业务处理
 * @ClassNmae: ClassifyServiceImpl
 * @Author: 何同学
 * @DateTime: 2022-05-10 20:23
 **/
@Service
@Transactional
@RequiredArgsConstructor
public class ClassifyServiceImpl extends ServiceImpl<ClassifyMapper, Classify> implements ClassifyService {

    private final ClassifyMapper classifyMapper;

    @Override
    @Transactional(propagation = Propagation.SUPPORTS)
    public List<Classify> getClassify() {
        return classifyMapper.selectList(null);
    }
}
